<html>
<head><meta charset="utf-8"><title>Dump Clean · rustdoc · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/index.html">rustdoc</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Dump.20Clean.html">Dump Clean</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="223048543"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Dump%20Clean/near/223048543" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Dump.20Clean.html#223048543">(Jan 17 2021 at 15:42)</a>:</h4>
<p>Is their a way to get the <code>clean::Crate</code> for debuging purposes, akin to <code>-Z unpretty=hir-tree</code>. If not, would you accept a PR to add it</p>



<a name="223048910"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Dump%20Clean/near/223048910" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Dump.20Clean.html#223048910">(Jan 17 2021 at 15:49)</a>:</h4>
<p><span class="user-mention" data-user-id="268539">@Nixon Enraght-Moony</span> that sounds like a lot of work to maintain :/ this is basically the equivalent of <code>rustc_hir_pretty</code>, right?</p>



<a name="223049539"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Dump%20Clean/near/223049539" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Dump.20Clean.html#223049539">(Jan 17 2021 at 16:01)</a>:</h4>
<p><code>rustc_hir_pretty</code> can do a load of things, like printing back the code with identifiers. All I realy want is to use the <code>Debug</code> impls, which doesn't seem so bad</p>



<a name="223049595"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Dump%20Clean/near/223049595" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Dump.20Clean.html#223049595">(Jan 17 2021 at 16:02)</a>:</h4>
<p>if you use Debug that will be several thousand lines of info <span aria-label="sweat smile" class="emoji emoji-1f605" role="img" title="sweat smile">:sweat_smile:</span></p>



<a name="223049608"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Dump%20Clean/near/223049608" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Dump.20Clean.html#223049608">(Jan 17 2021 at 16:02)</a>:</h4>
<p>let's put it this way: if you come up with something nice I don't mind, but I think it will be hard to do</p>



<a name="223049716"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Dump%20Clean/near/223049716" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Dump.20Clean.html#223049716">(Jan 17 2021 at 16:04)</a>:</h4>
<p>If you want something in the short term you can use <code>trace!(?krate)</code> or something, I don't mind that</p>



<a name="223051485"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Dump%20Clean/near/223051485" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Dump.20Clean.html#223051485">(Jan 17 2021 at 16:37)</a>:</h4>
<p>With <code>#![no_core]</code> its only 109 lines for a unit struct, and 197 for the JSON Ice.</p>
<p>But without that, its 200k</p>



<a name="223051557"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Dump%20Clean/near/223051557" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Dump.20Clean.html#223051557">(Jan 17 2021 at 16:38)</a>:</h4>
<p>yeah, that's about what I expected</p>



<a name="223051586"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Dump%20Clean/near/223051586" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Dump.20Clean.html#223051586">(Jan 17 2021 at 16:39)</a>:</h4>
<p>and most of it isn't <em>useful</em> either, there's a lot of noise</p>



<a name="223053098"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Dump%20Clean/near/223053098" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nixon Enraght-Moony <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Dump.20Clean.html#223053098">(Jan 17 2021 at 17:11)</a>:</h4>
<p>I've got a usefull output by messing with the Debug impls, but  it's probably not worth upstreaming.</p>



<a name="223053151"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Dump%20Clean/near/223053151" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Dump.20Clean.html#223053151">(Jan 17 2021 at 17:12)</a>:</h4>
<p>I would definitely be interested in better Debug output :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>